package com.youmu.shop.coupon.service;

import java.util.List;
import java.util.Map;

import com.youmu.shop.coupon.bean.Coupon;
import com.youmu.shop.coupon.bean.CouponCodeBean;
import com.youmu.shop.coupon.vo.CouponVO;
import com.youmu.shop.param.CalculateFreightParam;

/**
 * 
 * <p>Title:CouponService</p>
 * @author xc
 * @version	v1.0
 * <p>Date:2017年2月6日下午4:58:37</p>
 * <p>Description:TODO</p>
 */
public interface CouponService {

	List<CouponVO> findCoupon(Long userId,Integer status);

	Double getCouponByCouponCodeId(Long id);

    /**
     * 查询所有可用的优惠劵种类id
     * @return
     */
    List<Long> findUsefulCouponIds();

    /**
     * 
     * @param couponIds 优惠劵类型id
     * @param id    
     */
    void saveCouponForUser(Long couponId, Long userId);

    /**
     * 下单页面查询可用优惠券
     * @param calculateFreightParam
     * @return
     */
	List<Coupon> selectCouponsForPlaceOrder(CalculateFreightParam calculateFreightParam);
	
	CouponCodeBean selectCouponCodeByCouponIdAndMemberId(Map<String, Object> map);
}
